package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.SysChildren;
import com.jinghua.treatment.mapper.SysChildrenMapper;
import com.jinghua.treatment.service.SysChildrenService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 儿童情况业务接口实现类
 * Created by 王兴光 on 2018/3/26.
 */
@Service("childrenService")
public class SysChildrenServiceImpl implements SysChildrenService {
    @Resource
    private SysChildrenMapper childrenMapper;

    @Override
    public SysChildren selectByPrimaryKey(Integer childrenId) {
        return childrenMapper.selectByPrimaryKey(childrenId);
    }

    @Override
    @Transactional
    public int insert(SysChildren record) {
        return childrenMapper.insert(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(SysChildren record) {
        return childrenMapper.updateByPrimaryKey(record);
    }
}
